package com.itqf.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itqf.typehandler.StringToIngterArrayTypeHandler;
import lombok.Data;

/**
 * projectName: mybatisgp8
 *
 * @author: 赵伟风
 * time: 2021/8/28 14:51
 * description:
 */
@Data
@TableName(value = "user",autoResultMap = true)
public class User {


    @TableId(type = IdType.AUTO )
    private Integer id;
    @TableField(value = "name",typeHandler = StringToIngterArrayTypeHandler.class)
    private Integer [] sname;
    private int age;
}
